<?php

class Logy extends Game {
	$prog = "";

	public function Logy(){
		parent::__construct();
	}

	public function reset(){
		$this->prog = "";
	}

	public function sitNo(){
		return 1;
	}

	public function doAction($player, $action, $params) {
		switch($action){
			case "addStep":
				$this->prog .= $params[0];
				echo $this->prog;
				break;
			case "run":
				echo $this->prog;
				break;
		}
	}

}

?>